
<%@ page import="com.goal98.SitemapEntry" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="sitemapEntry.create" default="Create SitemapEntry" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home" /></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="sitemapEntry.list" default="SitemapEntry List" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="sitemapEntry.create" default="Create SitemapEntry" /></h1>
            <g:if test="${flash.message}">
            <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
            </g:if>
            <g:hasErrors bean="${sitemapEntryInstance}">
            <div class="errors">
                <g:renderErrors bean="${sitemapEntryInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="changefreq"><g:message code="sitemapEntry.changefreq" default="Changefreq" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sitemapEntryInstance, field: 'changefreq', 'errors')}">
                                    <input type="text" id="changefreq" name="changefreq" value="${fieldValue(bean:sitemapEntryInstance,field:'changefreq')}"/>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastmodDate"><g:message code="sitemapEntry.lastmodDate" default="Lastmod Date" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sitemapEntryInstance, field: 'lastmodDate', 'errors')}">
                                    <g:datePicker name="lastmodDate" value="${sitemapEntryInstance?.lastmodDate}" precision="minute" ></g:datePicker>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="loc"><g:message code="sitemapEntry.loc" default="Loc" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sitemapEntryInstance, field: 'loc', 'errors')}">
                                    <input type="text" id="loc" name="loc" value="${fieldValue(bean:sitemapEntryInstance,field:'loc')}"/>
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="priority"><g:message code="sitemapEntry.priority" default="Priority" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sitemapEntryInstance, field: 'priority', 'errors')}">
                                    <input type="text" id="priority" name="priority" value="${fieldValue(bean:sitemapEntryInstance,field:'priority')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastmod"><g:message code="sitemapEntry.lastmod" default="Lastmod" />:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sitemapEntryInstance, field: 'lastmod', 'errors')}">
                                    <input type="text" name="lastmod" id="lastmod" value="${fieldValue(bean:sitemapEntryInstance,field:'lastmod')}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'create', 'default': 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
